<?php
    $t=time()-$b;
    echo 'Bat dau: '.date('G:i:s',$b). 
        ' Ket thuc:'.date('G:i:s',time()).
        '\nThoi gian thuc hien: '.date('G:i:s',$t);
?>